package com.ruoyi.business.domain;

import java.math.BigDecimal;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 评分标准对象 t_scoring_standard
 * 
 * @author lcz
 * @date 2025-03-31
 */
@Data
@ApiModel("评分标准对象")
public class ScoringStandard extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 评分标准ID */
    @ApiModelProperty("评分标准ID")
    private Long id;

    /** 年级ID */
    @Excel(name = "年级ID")
    @ApiModelProperty("年级ID")
    private Long gradeId;

    /** 学校ID */
    @ApiModelProperty("学校ID")
    private Long schoolId;

    /** 项目ID */
    @Excel(name = "项目",readConverterExp = "1=身高体重,2=肺活量,3=坐位体前屈,4=50米快速跑,5=中长跑,6=仰卧起坐,7=立定跳远,8=跳绳,9=100米跑,10=200米跑,11=400米跑,12=800米跑,13=1000米跑,14=1500米跑,15=3000米跑")
    @ApiModelProperty("项目ID")
    private String projectId;

    /** 性别 */
    @Excel(name = "性别", readConverterExp = "1=男,2=女")
    @ApiModelProperty("性别")
    private String gender;

    /** 成绩 */
    @Excel(name = "成绩")
    @ApiModelProperty("成绩")
    private BigDecimal score;

    /** 单项得分 */
    @Excel(name = "单项得分")
    @ApiModelProperty("单项得分")
    private Long itemScore;

    /** 等级ID */
    @Excel(name = "等级ID",readConverterExp = "1=优秀,2=良好,3=及格,4=不及格")
    @ApiModelProperty("等级ID")
    private Long levelId;

    /** 等级名称 */
    @ApiModelProperty("等级名称")
    private String levelName;

    /** 年级名称 */
//    @Excel(name = "年级名称")
//    @ApiModelProperty("年级名称")
    private String gradestr;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("gradeId", getGradeId())
            .append("schoolId", getSchoolId())
            .append("projectId", getProjectId())
            .append("gender", getGender())
            .append("score", getScore())
            .append("itemScore", getItemScore())
            .append("levelId", getLevelId())
            .append("levelName", getLevelName())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
